In This Topic
Return the sizeof a struct from a CLR. Equivalent to sizeof operator but works on generics too.
Syntax
'Declaration
Public Overloads Shared Function SizeOf(Of As {New, Struct})() As Integer
public static int SizeOf<>()
where T: new(), struct
Type Parameters
- T
- A struct to evaluate.
Return Value
Size of this struct.
See Also